/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "广告",TableName = "advertisement")]
[Table("advertisement")]
    public partial class Advertisement:BaseEntity
    {
        /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? create_time { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? modified_time { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="advertisement_id")]
       [Column(TypeName= "int")]
       [Required(AllowEmptyStrings=false)]
       public int advertisement_id { get; set; }
 

       /// <summary>
       ///广告名称
       /// </summary>
       [Display(Name ="广告名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string advertisement_name { get; set; }

       /// <summary>
       ///图片地址
       /// </summary>
       [Display(Name ="图片地址")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string advertisement_url { get; set; }

       /// <summary>
       ///状态 0 启用;1下架
       /// </summary>
       [Display(Name ="状态 0 启用;1下架")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int advertisement_status { get; set; }

       /// <summary>
       ///排序
       /// </summary>
       [Display(Name ="排序")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int advertisement_sort { get; set; }

       /// <summary>
       ///是否删除 0否;1是
       /// </summary>
       [Display(Name ="是否删除 0否;1是")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int is_delete { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [Column(TypeName="nvarchar(max)")]
       public string desc { get; set; }

        [Display(Name = "商家id")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int? shopid { get; set; }
    }
}